/ Assembly List / LJCNetCommon / CodeTokenizer / GetNextToken

Namespace - LJCNetCommon


Parameters
tokenIndex - The token index.

Returns

The next token value.

Syntax

C#
public String GetNextToken(Int16& tokenIndex)

Gets the next token after the specified token index. (E)

Example

C#
using LJCNetCommon;

var tokenizer = new CodeTokenizer();
string text = " string text = " // This is a comment.";
tokenizer.SetTokens(text);
short tokenIndex = 0;
string token = tokenizer.GetNextToken(ref tokenIndex);
// Value token = "This".
// Value tokenIndex = 1.

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.